package com.itheima.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.bean.Category;
import com.itheima.common.pageParm;

import java.util.List;

public interface CategoryService {

    int add(Category category);

    IPage<Category> findPage(pageParm pageParm);

    int delete(Long id, Integer type);

    int update(Category category);

    List<Category> findByType(Integer type);


    /*
    根据他的分类id找分类数据
    * */
    Category findById(long cid);
}
